package com.prft.rms.entity;

// Generated Aug 18, 2009 4:13:41 PM by Hibernate Tools 3.2.1.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * EmployeeSkill generated by hbm2java
 */
@Entity
@Table(name = "EMPLOYEE_SKILL", catalog = "RMS")
public class EmployeeSkill implements java.io.Serializable {

	private Integer esid;
	private SkillInfo skillInfo;
	private Employee employee;
	private Integer skillMonth;
	private Date skillStartDate;
	private Date lastUpdated;
	private char isActive;

	public EmployeeSkill() {
	}

	public EmployeeSkill(SkillInfo skillInfo, Employee employee, Date lastUpdated, char isActive) {
		this.skillInfo = skillInfo;
		this.employee = employee;
		this.lastUpdated = lastUpdated;
		this.isActive = isActive;
	}

	public EmployeeSkill(SkillInfo skillInfo, Employee employee, Integer skillMonth, Date skillStartDate,
			Date lastUpdated, char isActive) {
		this.skillInfo = skillInfo;
		this.employee = employee;
		this.skillMonth = skillMonth;
		this.skillStartDate = skillStartDate;
		this.lastUpdated = lastUpdated;
		this.isActive = isActive;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ESID", unique = true, nullable = false)
	public Integer getEsid() {
		return this.esid;
	}

	public void setEsid(Integer esid) {
		this.esid = esid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "SKILL_ID", nullable = false)
	public SkillInfo getSkillInfo() {
		return this.skillInfo;
	}

	public void setSkillInfo(SkillInfo skillInfo) {
		this.skillInfo = skillInfo;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "EMID", nullable = false)
	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	@Column(name = "SKILL_MONTH")
	public Integer getSkillMonth() {
		return this.skillMonth;
	}

	public void setSkillMonth(Integer skillMonth) {
		this.skillMonth = skillMonth;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "SKILL_START_DATE", length = 10)
	public Date getSkillStartDate() {
		return this.skillStartDate;
	}

	public void setSkillStartDate(Date skillStartDate) {
		this.skillStartDate = skillStartDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_UPDATED", nullable = false, length = 19)
	public Date getLastUpdated() {
		return this.lastUpdated;
	}

	public void setLastUpdated(Date lastUpdated) {
		this.lastUpdated = lastUpdated;
	}

	@Column(name = "IS_ACTIVE", nullable = false, length = 1)
	public char getIsActive() {
		return this.isActive;
	}

	public void setIsActive(char isActive) {
		this.isActive = isActive;
	}

}
